package com.cinc.ebc.mm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmStockInitDetail;
import com.cinc.ebc.mm.model.MmStockInitDetailModel;
import com.cinc.ebc.mm.vo.MmStockInitDetailPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 库存初始化明细
 * @Author: jeecg-boot
 * @Date: 2022-07-03
 * @Version: V1.0
 */
public interface MmStockInitDetailMapper extends BaseMapper<MmStockInitDetail> {

    public boolean deleteByMainId(@Param("mainId") String mainId);

    public List<MmStockInitDetail> selectByMainId(@Param("mainId") String mainId);

    List<MmStockInitDetailModel> selectDetailList(Page<MmStockInitDetailModel> page,
                                                  @Param("detail") MmStockInitDetailPage detailPage,
                                                  @Param("permissionSql") String permissionSql);
}
